LangChainBaseMessage

@Serializable
data class LangChainBaseMessage(val role: LangChainMessageRole, val content: JsonElement = JsonPrimitive(""), val id: String? = null, val toolCallId: String? = null, val toolCalls: List<LangChainToolCall> = emptyList(), val additionalKwargs: Map<String, JsonElement> = emptyMap())

Constructors

Link copied to clipboard
constructor(role: LangChainMessageRole, content: JsonElement = JsonPrimitive(""), id: String? = null, toolCallId: String? = null, toolCalls: List<LangChainToolCall> = emptyList(), additionalKwargs: Map<String, JsonElement> = emptyMap())

Properties

Link copied to clipboard
val additionalKwargs: Map<String, JsonElement>
Link copied to clipboard
val content: JsonElement
Link copied to clipboard
val id: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard